$(function(){
	$('.login button').click(function(e){ 
		// Get the url of the link 
		var toLoad = $(this).attr('href');  
 
		// Do some stuff 
		$(this).addClass("loading"); 
 
			// Stop doing stuff  
			// Wait 700ms before loading the url 
			setTimeout(function(){window.location = toLoad}, 10000);	  
 
		// Don't let the link do its natural thing 
		e.preventDefault
	});
	
	$('input').each(function() {

       var default_value = this.value;

       $(this).focus(function(){
               if(this.value == default_value) {
                       this.value = '';
               }
       });

       $(this).blur(function(){
               if(this.value == '') {
                       this.value = default_value;
               }
       });
	});
});
function verifyPwd(element){
		var su=$('button');
		element.keyup(function(){
			if($('input[name=pwd]').val()!=$('input[name=password]').val()||$('input[name=pwd]').val()==""){
				$('.msg').css('color','red');
				$('.msg').html('密码不一致!');
				su.css('border','1px solid #4b4f51');
				su.css('background','#323537');
				su.attr('disabled','disabled');
			}else{
				$('.msg').css('color','green');
				$('.msg').html('密码正确!');
				su.css('border','1px solid #719e37');
				su.css('background','#9bc747');
				su.removeAttr('disabled');
			}
		});
	};